<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>开发日志</title>
    <script src="../../static/kaige/js/szload.js"></script>
</head>

<body>

    <div class="kaige-body">
        <fieldset class="layui-elem-field layui-field-title">
            <legend>开发日志</legend>
        </fieldset>
        <ul class="layui-timeline" id="view_box">

        </ul>
    </div>
    <script>
        load_init_js(function () {
            layui.use(function () {
                var element = layui.element, layer = layui.layer, $ = layui.$, laytpl = layui.laytpl;

                $.get('/log/log', function (res) {
                    if (res.status) {
                        var getTpl = $('#log_html').html();
                        var elemView = $('#view_box');
                        // 渲染并输出结果
                        laytpl(getTpl).render(res.data, function (shtml) {
                            elemView.html(shtml);
                        });
                    }
                });

            });
        });
    </script>
    <script type="text/html" id="log_html">
        {{# layui.each(d,function(i8,e8){ }}
        <li class="layui-timeline-item">
            <i class="layui-icon layui-timeline-axis layui-icon-read"></i>
            <div class="layui-timeline-content layui-text">
                <h3 class="layui-timeline-title">{{ e8.title }}</h3>
                <div class="">{{- e8.content }}</div>
            </div>
        </li>
        {{# }); }}
    </script>
</body>

</html>